<?php

namespace App\Enums;

use BenSampo\Enum\Enum;

/**
 * @method static static OptionOne()
 * @method static static OptionTwo()
 * @method static static OptionThree()
 */
final class OptionType extends Enum
{
    //状态:0=支付方式,1=医生,2=病种,3=数据来源
    const PAYMENT = 0;
    const DOCTOR = 1;
    //const DISEASE = 2;
    const SOURCE = 3;


    public static function getDescription(mixed $value): string
    {
        return match ($value) {
            self::PAYMENT => '支付方式',
            self::DOCTOR => '专家',
            //self::DISEASE => '病种',
            self::SOURCE => '数据来源',
            default => self::getKey($value),
        };
    }
}
